package com.group.eams.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group.eams.pojo.dto.AssetDetailQueryDto;
import com.group.eams.pojo.dto.AssetReportQueryDto;
import com.group.eams.pojo.entity.AssetReport;
import com.group.eams.pojo.vo.AssetReportListVo;
import com.group.eams.pojo.vo.FixedAssetListVo;

import java.util.List;

/**
* @author 恩哲欣
* @description 针对表【asset_report(资产报修)】的数据库操作Service
* @createDate 2024-10-29 16:09:34
*/
public interface AssetReportService extends IService<AssetReport> {

    /**
     * 分页条件查询
     * @param page 分页条件
     * @param assetReportQueryDto 查询条件
     * @return 页数数据+总记录数
     */
    Page<AssetReportListVo> findAssetReportByPage(Page<AssetReport> page, AssetReportQueryDto assetReportQueryDto);

    /**
     * 分页条件查询
     * @param page 分页条件
     * @return 页数数据+总记录数
     */
    Page<FixedAssetListVo> findAssetReportDetailByPage(Page<AssetReport> page,
                                                       AssetDetailQueryDto assetDetailQueryDto);


    /**
     * 根据报修单号查询
     * @param assetReportNum
     */
    List<AssetReport> findByAssetReportNum(String assetReportNum);
}
